package com.zxd.date;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * ClassName:MyFormat
 * Package:com.zxd.newdate
 *
 * @Date:2023/9/18 21:20
 * @Author:zxde
 */
public class MyFormat {
    public static void main(String[] args) {
        LocalDate now = LocalDate.now();
        //dateTimeFormatter.ofPattern
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy/MM/dd");
        System.out.println(now.format(dateTimeFormatter));
    }
}
